#ifndef _SBUS_H_
#define _SBUS_H_

#include <stdint.h>

#define SBUS_STARTBYTE 	0x0f
#define SBUS_ENDBYTE	0x00

#define SBUS_FRAME_OK		0
#define SBUS_FRAME_PARSING	1
#define SBUS_ERROR_FRAME 	2

uint8_t sbus_parse_char(uint8_t rx, uint16_t* channels);

#endif
